package com.ruoyi.project.xcx.myhome.category.mapper;

import java.util.List;
import com.ruoyi.project.xcx.myhome.category.domain.XcxMyhomeCategory;
import org.apache.ibatis.annotations.Param;

/**
 * myhome分类Mapper接口
 * 
 * @author ruoyi
 * @date 2020-03-10
 */
public interface XcxMyhomeCategoryMapper {
    /**
     * 删除分类
     * @param id
     * @param userId
     * @return
     */
    int deleteByIdAndUserId(@Param("id") Long id, @Param("userId") Long userId);
    /**
     * 修改指定类别的个数
     * @param vlaue
     * @param id
     * @return
     */
    public int updateCategoryCount(@Param("value") Integer vlaue, @Param("id") Long id);
    /**
     * 根据名称查询分类
     * @param xcxMyhomeCategory
     * @return
     */
    public List<XcxMyhomeCategory> selectCategoryByName(XcxMyhomeCategory xcxMyhomeCategory);

    /**
     * 查询myhome分类
     * 
     * @param id myhome分类ID
     * @return myhome分类
     */
    public XcxMyhomeCategory selectXcxMyhomeCategoryById(Long id);

    /**
     * 查询myhome分类列表
     * 
     * @param xcxMyhomeCategory myhome分类
     * @return myhome分类集合
     */
    public List<XcxMyhomeCategory> selectXcxMyhomeCategoryList(XcxMyhomeCategory xcxMyhomeCategory);

    /**
     * 新增myhome分类
     * 
     * @param xcxMyhomeCategory myhome分类
     * @return 结果
     */
    public int insertXcxMyhomeCategory(XcxMyhomeCategory xcxMyhomeCategory);

    /**
     * 修改myhome分类
     * 
     * @param xcxMyhomeCategory myhome分类
     * @return 结果
     */
    public int updateXcxMyhomeCategory(XcxMyhomeCategory xcxMyhomeCategory);

    /**
     * 删除myhome分类
     * 
     * @param id myhome分类ID
     * @return 结果
     */
    public int deleteXcxMyhomeCategoryById(Long id);

    /**
     * 批量删除myhome分类
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteXcxMyhomeCategoryByIds(String[] ids);
}
